package com.zareal.ymcc.mapper;

import com.zareal.ymcc.domain.Course;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.springframework.data.repository.query.Param;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Wilson
 * @since 2022-09-30
 */
public interface CourseMapper extends BaseMapper<Course> {

    void saveTeacherByCourseId(@Param("id") Long id,@Param("teacharIds") List<Long> teacharIds);

    void deletTeacherByCourseId(Serializable id);

    List<Long> selectTeacherByCourseId(Serializable id);

    void updateTeacherByCourseId(Long id, List<Long> teacharIds);
}
